package com.song.helper.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 工作时间表
 * </p>
 *
 * @author stylefeng
 * @since 2017-10-02
 */
@TableName("work_time")
public class WorkTime extends Model<WorkTime> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 日期
     */
	@TableField("work_date")
	private Date workDate;
    /**
     * 上班时间
     */
	@TableField("start_time")
	private Date startTime;
    /**
     * 下班时间
     */
	@TableField("end_time")
	private Date endTime;
    /**
     * 加班开始时间
     */
	@TableField("add_start")
	private Date addStart;
    /**
     * 加班结束时间
     */
	@TableField("add_end")
	private Date addEnd;
    /**
     * 备注
     */
	private String remarks;
    /**
     * 迟到
     */
	private String tardy;
    /**
     * 早退
     */
	private String early;
    /**
     * 病假
     */
	@TableField("sick_leave")
	private String sickLeave;
    /**
     * 事假
     */
	@TableField("com_leave")
	private String comLeave;
    /**
     * 其他要记录的
     */
	private String other;
    /**
     * 工作状态1正常 ,2加班,3请假,4其他
     */
	private Integer status;
    /**
     * 创建用户
     */
	@TableField("create_user")
	private Integer createUser;
    /**
     * 修改时间
     */
	@TableField("update_date")
	private Date updateDate;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getWorkDate() {
		return workDate;
	}

	public void setWorkDate(Date workDate) {
		this.workDate = workDate;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Date getAddStart() {
		return addStart;
	}

	public void setAddStart(Date addStart) {
		this.addStart = addStart;
	}

	public Date getAddEnd() {
		return addEnd;
	}

	public void setAddEnd(Date addEnd) {
		this.addEnd = addEnd;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public String getTardy() {
		return tardy;
	}

	public void setTardy(String tardy) {
		this.tardy = tardy;
	}

	public String getEarly() {
		return early;
	}

	public void setEarly(String early) {
		this.early = early;
	}

	public String getSickLeave() {
		return sickLeave;
	}

	public void setSickLeave(String sickLeave) {
		this.sickLeave = sickLeave;
	}

	public String getComLeave() {
		return comLeave;
	}

	public void setComLeave(String comLeave) {
		this.comLeave = comLeave;
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getCreateUser() {
		return createUser;
	}

	public void setCreateUser(Integer createUser) {
		this.createUser = createUser;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "WorkTime{" +
			"id=" + id +
			", workDate=" + workDate +
			", startTime=" + startTime +
			", endTime=" + endTime +
			", addStart=" + addStart +
			", addEnd=" + addEnd +
			", remarks=" + remarks +
			", tardy=" + tardy +
			", early=" + early +
			",sickLeave=" +sickLeave +
			", comLeave=" + comLeave +
			", other=" + other +
			", status=" + status +
			", createUser=" + createUser +
			", updateDate=" + updateDate +
			", createDate=" + createDate +
			"}";
	}
}
